//
//  MovieDetaView.m
//  UI_豆瓣
//
//  Created by dllo on 15/10/31.
//  Copyright © 2015年 蓝鸥科技. All rights reserved.
//

#import "MovieDetaView.h"

@interface MovieDetaView ()

@property(nonatomic, retain)UILabel *actorts;
@property(nonatomic, retain)UILabel *moviePlot;


@end

#define  FULLERAME [[UIScreen mainScreen]bounds]
@implementation MovieDetaView


- (void)dealloc
{
    [_rating release];
    [_ratingCount release];
    [_date release];
    [_runtime release];
    [_genres release];
    [_country release];
    [_actorsContent release];
    [_actorts release];
    [_moviePlot release];
    [_headImageView release];
    [super dealloc];
}


-(instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        [self createSubViews];
    }
    return self;
}


-(void)createSubViews
{
    self.backImageView = [[UIImageView alloc]initWithFrame:[[UIScreen mainScreen]bounds]];
    self.backImageView.image = [UIImage imageNamed:@"111111.png"];
    self.backImageView.alpha = 0.3;
    [self addSubview:self.backImageView];
    [_backImageView release];
    
    
    
    //图片
    self.headImageView = [[UIImageView alloc]initWithFrame:CGRectMake(10, 10, 120, 120*(FULLERAME.size.height/FULLERAME.size.width))];
//    self.headImageView.backgroundColor = [UIColor yellowColor];
    self.headImageView.layer.masksToBounds = YES;
    self.headImageView.layer.cornerRadius = 10;
    [self addSubview:self.headImageView];
    [_headImageView release];
    
    
    //评分
    self.rating = [[ UILabel alloc]initWithFrame:CGRectMake(140, 20, 110, 30)];
    [self addSubview:self.rating];
    [_rating release];
//    self.rating.backgroundColor = [UIColor yellowColor];
    
    //评论人数
    self.ratingCount = [[UILabel alloc]initWithFrame:CGRectMake(260, 20, 110, 30)];
    [self addSubview:self.ratingCount];
    [_ratingCount release];
//    self.ratingCount.backgroundColor = [UIColor yellowColor];
    
    
    //上映时间
    self.date = [[UILabel alloc]initWithFrame:CGRectMake(140, 60, 200, 30)];
    [self addSubview:self.date];
    [_date release];
//    self.date.backgroundColor = [UIColor yellowColor];
    
    //电影时长
    self.runtime = [[UILabel alloc]initWithFrame:CGRectMake(140, 100, 200, 30)];
    [self addSubview:self.runtime];
    [_runtime release];
//    self.runtime.backgroundColor = [UIColor yellowColor];
    
    
    //电影分类
    self.genres = [[UILabel alloc]initWithFrame:CGRectMake(140, 140, 200, 30)];
    [self addSubview:self.genres];
    [_genres release];
//    self.genres.backgroundColor = [UIColor yellowColor];
    
    //国家
    self.country = [[UILabel alloc]initWithFrame:CGRectMake(140, 180, 200, 30)];
    [self addSubview:self.country];
    [_country release];
//    self.country.backgroundColor = [UIColor yellowColor];
    
    
    //制作人
    self.actorts = [[UILabel alloc]initWithFrame:CGRectMake(10, 250, 100, 30)];
    self.actorts.text = @"制作人";
    self.actorts.font = [UIFont boldSystemFontOfSize:20];
    [self addSubview:self.actorts];
    [_actorts release];
//    self.actorts.backgroundColor = [UIColor yellowColor];
    
    //制作人信息
    self.actorsContent = [[UILabel alloc]initWithFrame:CGRectMake(10, 290, 355, 30)];
    self.actorsContent.numberOfLines = 0;
    [self addSubview:self.actorsContent];
    [_actorsContent release];
//    self.actorsContent.backgroundColor = [UIColor yellowColor];
    
    
    //电影情节
    self.moviePlot = [[UILabel alloc]initWithFrame:CGRectMake(10, 380, 150, 30)];
    self.moviePlot.text = @"电影情节";
    self.moviePlot.font = [UIFont boldSystemFontOfSize:20];
    [self addSubview:self.moviePlot];
    [_moviePlot release];
//    self.moviePlot.backgroundColor = [UIColor yellowColor];
    
    
    //电影情节详情
    self.plotSimple = [[UILabel alloc]initWithFrame:CGRectMake(10, 420, 355, 30)];
    self.plotSimple.numberOfLines = 0;
    [self addSubview:self.plotSimple];
    [_plotSimple release];
//    self.plotSimple.backgroundColor = [UIColor yellowColor];
    
    
    
    
    
    
}







/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
